package com.cskaoyan.day1.generic6;

/**
 * @author Common-zhou
 * @since 2023-02-27 14:57
 */
public class Generic3 {
    public static void main(String[] args) {
        Number[] numbers = new Integer[10];

        //Number
        numbers[0] = new Integer(10);
        numbers[1] = new Integer(20);

        // 协变会产生的问题
        numbers[2] = new Double(20);

    }
}
